package com.gwnet.rider.enums;


/**
 * 提现类型
 * @author: WangLiang
 * @date: 2024/7/31 18:13
 */
public enum WithdrawalTypeEnum {

    SYSTEM(1,"系统提现"),

    MANUAL(2,"手动提现");


    private Integer code;
    private String desc;

    WithdrawalTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer code() {
        return code;
    }

    public String desc() {
        return desc;
    }

    public static WithdrawalTypeEnum instance(Integer value) {
        WithdrawalTypeEnum[] enums = values();
        for (WithdrawalTypeEnum statusEnum : enums) {
            if (statusEnum.code().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }


}
